<template>
	<view>
		<image src="/static/images/logo.png" mode=""></image>
	</view>
</template>

<script>
	import store from 'store'
	import { mapGetters,mapActions } from 'vuex'
	import { payOrderByWxmini,payOrderByAdapayWxmini,payOrderByAliwap } from "api/paymentApi"
	export default {
		store,
		data: () => ({
			html:'',
			timer:null
		}),
		computed: {
			...mapGetters([
				'user'
			])
		},
		onLoad() {
					if (window.history && window.history.pushState) {
						history.pushState(null, null, document.URL);
						window.addEventListener("popstate", this.show, false);
					}
				},
		onShow() {
			this.timer = setInterval(()=>{},1000)
		},
		onUnload(){
			window.removeEventListener("popstate", this.show, false);
			clearInterval(this.timer);  
			this.timer = null;  
		},
		methods: {
			show(){
				clearInterval(this.timer);
				this.timer = null;  
				uni.reLaunch({
					url:'/pages/mine/mine'
				})
			}
			
		}
	}
</script>

<style>
</style>



